<include file="Admin:header" />
<script type="text/javascript">
 
  function checknode(obj)
  {
      var chk = $("input[type='checkbox']");
      var count = chk.length;
      var num = chk.index(obj);
      var level_top = level_bottom =  chk.eq(num).attr('level');
      for (var i=num; i>=0; i--)
      {
              var le = chk.eq(i).attr('level');
              if(eval(le) < eval(level_top)) 
              {
                  chk.eq(i).attr("checked",true);
                  var level_top = level_top-1;
              }
      }
      for (var j=num+1; j<count; j++)
      {
              var le = chk.eq(j).attr('level');
              if(chk.eq(num).attr("checked")==true) {
                  if(eval(le) > eval(level_bottom)) chk.eq(j).attr("checked",true);
                  else if(eval(le) == eval(level_bottom)) break;
              }
              else {
                  if(eval(le) > eval(level_bottom)) chk.eq(j).attr("checked",false);
                  else if(eval(le) == eval(level_bottom)) break;
              }
      }
  }
</script>
<style>.mainnav_title{display:none;}</style>
<form id="myform" name="myform" action="{:U('Orderfield/insert')}&rid={$rid}" method="post">
<input type="hidden" id="rid" name="rid" value="{$rid}" />
<div class="pad-lr-10">
<div class="table-list"><div>订单——————————————————————————————————————————————</div>
    <table width="100%" cellspacing="0"  id="dnd-example"> 
	<tbody>
<?php
$listarr=array(
	'va'=>'订单号',
	'vb'=>'网站名称',
	'vc'=>'网站国家',
	'vd'=>'客户姓名',
	've'=>'销售员',
	'vf'=>'产品编码',
	'vg'=>'产品描述',
	'vh'=>'数量',
	'vi'=>'单价',
	'vj'=>'总价格',
	'vk'=>'订单状态',
	'vl'=>'跟踪码',
	'vm'=>'备注',
	'vn'=>'客户邮箱',
	'vo'=>'邮政编码',
	'vp'=>'联系电话',
	'vq'=>'收货人',
	'vr'=>'收货地址',
	'vs'=>'发货方式',
	'vt'=>'客户留言',
	'vu'=>'管理操作',
	'vv'=>'导入',
	'vw'=>'导出',
	'vx'=>'打印',
	'vy'=>'单据打印',
);
foreach($listarr as $k=>$val){
	if(stripos($ofield,$k)>-1){
		$chkd='checked="checked"';
	}else{
		$chkd='';
	}
	echo "<tr><td><input type='checkbox' name='ofield[]' value='".$k."' ".$chkd." />".$val."</td></tr>";
}
?>
	</tbody>
    </table>

<div>报表——————————————————————————————————————————————</div>
    <table width="100%" cellspacing="0"  id="dnd-example"> 
	<tbody>
<?php
$listarr=array(
	'v1'=>'客户排行榜',
	'v2'=>'销售员排行榜',
	'v3'=>'商品排行榜',
	'v4'=>'销售员',
	'v5'=>'网站国家',
	'v6'=>'网站名称',
	'v7'=>'日销售统计',
	'v8'=>'月销售统计',
	'v9'=>'打印',
);
foreach($listarr as $k=>$val){
	if(stripos($ofield,$k)>-1){
		$chkd='checked="checked"';
	}else{
		$chkd='';
	}
	echo "<tr><td><input type='checkbox' name='ofield[]' value='".$k."' ".$chkd." />".$val."</td></tr>";
}
?>
	</tbody>
    </table>
</div>
</div><input type="submit" style="display:none;" class="button"  value="{:L('dosubmit')}" />
</form></div>
 